package cn.tedu.system.oa.notice.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("notices")
public class NoticeQuery {
    @ApiModelProperty(value = "公告id")
    String id;
    @ApiModelProperty(value = "公告标题")
    String noticeTitle; 
    @ApiModelProperty(value = "公告状态")
    Integer status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    Date createTime;
    @ApiModelProperty(value = "部门id")
    Integer deptId;
    
    //以下时间用于时间范围查询
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    Date endTime;
    
}
